<template>
	<view>
		<view class="">
			<view class="m-h1" style="text-align: center;">
				订单结算
			</view>
			<view class="" @tap="toBack()">
				<image class="nav-margin-back-img" src="../../static/back.png" mode="widthFix"></image>
			</view>
			
			
			<view class="" style="margin-top: 100rpx;">
				<view class="content" style="display: flex;justify-content: space-between;">
						<view class="m-margin-bottom" style="display: flex;justify-content: flex-start;">
							<view class="">
								<image style="width: 42rpx;height: 65rpx;" src="../../static/location.png" mode="widthFix"></image>
							</view>
							<view class="">
								<view class="o-font-1">
									您还未设置收货地址
								</view>
								<view class="o-font-2">
									请完善详细地址
								</view>
							</view>
						</view>
						<view class="">
							<image style="width: 28rpx;height: 28rpx;position: relative;top: 20rpx;" src="../../static/next.png" mode="widthFix"></image>
						</view>
				</view>
				
				<view class="o-bg-1"></view>
				<view class="o-bg-2 "></view>
				
				<view @click="toOrderList()"  class="content " >
					<view class="" style="display: flex;justify-content: space-between;margin-bottom: 20rpx;">
						<view class="o-list-font-1-1">
							长兴县沙葛小学项目一期
						</view>
						<view class="" style="">
							<text class="o-font">共5个子订单</text>
						</view>
					</view>
					<view  class="" style="">
						<view v-for="item in order2" style="margin-bottom: 16rpx;">
							<view class="" style="display: flex;justify-content: space-between;">
									<view class="o-list-font-1-2">
										{{item.content}}
									</view>
									<view class="o-list-font-1-2">
										{{item.size}}
									</view>
							</view>
						</view>	
					</view>	
				</view>
				
				<view class="o-bg-2 m-margin-bottom" style="margin-top: 60rpx;"></view>
				
				<view class="m-margin-bottom" >
					<view class="content">
						<view class="" style="display: flex;justify-content: space-between;">
							<view class="o-font-3">
								交易方式
							</view>
							<view class="o-font-3">
								在线支付
								<image style="width: 28rpx;height: 28rpx;position: relative;top: 8rpx;" src="../../static/next.png" mode="widthFix"></image>
							</view>
						</view>
					</view>
					
					<view class="o-bg-3" style="margin-top: 20rpx;"></view>
				</view>
				
				<view class="m-margin-bottom" >
					<view class="content">
						<view class="" style="display: flex;justify-content: space-between;">
							<view class="o-font-3">
								发票信息
							</view>
							<view class="o-font-3">
								企业专票
								<image style="width: 28rpx;height: 28rpx;position: relative;top: 8rpx;" src="../../static/next.png" mode="widthFix"></image>
							</view>
						</view>
					</view>
					
					<view class="o-bg-3" style="margin-top: 20rpx;"></view>
				</view>
				
				<view class="m-margin-bottom" >
					<view class="content">
						<view class="" style="display: flex;justify-content: space-between;">
							<view class="o-font-3">
								优惠券
							</view>
							<view class="o-font-3">
								选择或者填写
								<image style="width: 28rpx;height: 28rpx;position: relative;top: 8rpx;" src="../../static/next.png" mode="widthFix"></image>
							</view>
						</view>
					</view>
					
					<view class="o-bg-2" style="margin-top: 20rpx;"></view>
				</view>
				
				<view class="content" style="margin-top: 36rpx;">
					<view class="o-font-4 m-margin-bottom" >
						订单备注
					</view>
					<view class="">
						<textarea class="o-textarea" value="" placeholder="选择或者填写" />
					</view>
				</view>
				
				<view class="o-bg-2 m-margin-bottom" style="margin-top: 20rpx;"></view>
				
				<view class="content" style="">
					<view class="m-margin-bottom" style="display: flex;justify-content: space-between;">
						<view class="o-font-2">
							商品含税总额
						</view>
						<view class="o-font-4">
							¥2000.00
						</view>
					</view>
					
					<view class="m-margin-bottom" style="display: flex;justify-content: space-between;">
						<view class="o-font-5">
							预付款（70%）
						</view>
						<view class="o-font-5">
							¥¥1400.00
						</view>
					</view>
					
					<view class="m-margin-bottom" style="display: flex;justify-content: space-between;">
						<view class="o-font-2">
							税费
						</view>
						<view class="o-font-4">
							¥260.00
						</view>
					</view>
					
					<view class="m-margin-bottom" style="display: flex;justify-content: space-between;">
						<view class="o-font-2">
							优惠金额
						</view>
						<view class="o-font-4">
							¥0.00
						</view>
					</view>
					
					<view class="m-margin-bottom" style="display: flex;justify-content: space-between;">
						<view class="o-font-2">
							运费
						</view>
						<view class="o-font-4">
							¥0.00
						</view>
					</view>
					
					<view class="m-margin-bottom" style="display: flex;justify-content: space-between;">
						<view class="o-font-2">
							运费优惠
						</view>
						<view class="o-font-4">
							¥0.00
						</view>
					</view>
					
					
					
				</view>
			
				<view class="o-bg-4"></view>
				
				<view class="o-bottom content" style="display: flex;">
					<view>
						<view style="display: flex;margin-top: 30rpx;">
							<text class="o-font-6" style="margin-right: 20rpx;">数量：9</text>
							<text  class="o-font-6" style="margin-right: 20rpx;">总额(70%)：</text>
							<text class="o-font-7" style="margin-right: 20rpx;">¥1400.00</text>
						</view>
					</view>
					<view >
						<button @click="toPay()" class="" type="default" style="background-color: #1B4098; width: 192rpx;height: 96rpx;">
							<text class="o-font-8"   style="position: relative;top30rpx">立即支付</text>
							</button>
						</view>
					</view>
				</view>
			</view>
			
		</view>	
	</view>
</template>

<script>
	export default {
		data() {
			return {
				order2:[
					{
						content:'子订单1',
						size: '共3件'
					},
					{
						content:'子订单2',
						size: '共5件'
					},
					{
						content:'子订单3',
						size: '共4件'
					},
					{
						content:'子订单4',
						size: '共5件'
					},
					{
						content:'子订单5',
						size: '共7件'
					}
				]
				
				
			}
		},
		methods: {
			toPay:function(){
				uni.navigateTo({
					url:'../pay/pay'
				})
			},
			toBack:function(){
				console.log(1)
				uni.navigateBack({
					delta: 1 //返回上一级页面
				})
			},
			toOrderList:function(){
				uni.navigateTo({
					url:'../order-compute-child/order-compute-child'
				})
			},
		}
	}
</script>

<style lang="less" scoped>
@import url("../../style.less");
@import url("order-compute.less");
</style>
